
#include "Base.h"

#include "Component.h"
#include "BaseEntity.h"
#include <Memory/DebugNew.h>

namespace CasaEngine
{

Component::Component(BaseEntity* pEntity_, int type)
{
	CASAENGINE_ASSERT(pEntity_ != NULL && "Component::Component() : BaseEntity is NULL");

	m_pEntity = pEntity_;
	m_Type = type;
}

Component::~Component()
{

}

BaseEntity* Component::GetEntity() const 
{ 
	return m_pEntity; 
}

/**
 * 
 */
bool Component::HandleMessage(const Telegram& /*msg*/ )
{
	return false;
}

void Component::Draw() 
{ 
 
}

void Component::Write(std::ostream& /*os*/) const
{

}

void Component::Read (std::ifstream& /*is*/)
{

}

} // namespace CasaEngine
